# Contributor: Daniil Nemtsev <nmsv@pm.me>
# Maintainer: Daniil Nemtsev <nmsv@pm.me>
pkgname=cz-viator-hourglass-black
pkgver=20210706
pkgrel=0
pkgdesc="A X11 cursor theme inspired by the classical DMZ theme."
url="https://github.com/charakterziffer/cursor-toolbox"
arch="noarch"
license="GPL-3.0"
makedepends="python3 inkscape xcursorgen"
options="!check" # no tests
_gitrev=02a7977b3d009525c95787c756fce8d824960e4c
source="$pkgname-$_gitrev.tar.gz::https://github.com/charakterziffer/cursor-toolbox/archive/$_gitrev.tar.gz
	py3.patch
	"
builddir="$srcdir"/cursor-toolbox-$_gitrev

build() {
	python3 render-pngs.py svgs/template-black.svg
	python3 render-pngs.py svgs/spinner-hourglass.svg
	./make.sh
}

package() {
	mkdir -p "$pkgdir"/usr/share/icons/$pkgname
	cp -r My-Cursor-Theme/* "$pkgdir"/usr/share/icons/"$pkgname"
}

sha512sums="
cdeed1b5edeb071fe61d0b4ea8c7e324f24a17540f975f7213af6f9d9682ea2569e4b3a8427258c21f80dc969c8705f814f52d8212f2a9419e6bb9227e0d6244  cz-viator-hourglass-black-02a7977b3d009525c95787c756fce8d824960e4c.tar.gz
ae16551659b5334161f73cbac6430a1fdd6e6f4f134dc8dcfd616d577e751ecc77c59145bafca459aafc1461a7ae60d6aa142d6f9fd4b091c81717450fee62cc  py3.patch
"
